package com.zzsoft.girl.controller;

import com.zzsoft.girl.properties.GirlProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created by zhanghb on 2018/7/28.
 */
@RestController
@RequestMapping(value = "/hello")
public class HelloControllor {
    @Autowired
        private GirlProperties girlProperties;

        @RequestMapping(value = "/say",method = RequestMethod.GET)
        public String say(@RequestParam(value = "id",required = false,defaultValue = "0") Integer myId){
            return  "id:"+myId;
        //return girlProperties.getCupSize();
    }
}
